package zyc.dao;

import zyc.pojo.User;

/**
 * @description:
 * @author: ZhaoYicong
 * @date: Created in 2020/7/15 22:03
 * @version: v1.0
 * @modified By:
 */
public interface UserDao {

//    public User queryUserByUsername(String username);


    //通过用户名来查找user用户
    public User qureUserByUsername(String name);


    //通过密码和用户名查询
    public User queryUserByUsernameAndPassword(String username,String password);


    //保存用户 -1表示 失败
    public int saveUser(User user);
}
